package com.zw.mes.module.prdctionFlow.service;

import com.zw.mes.constant.Constant;
import com.zw.mes.entity.sys.Dept;
import com.zw.mes.module.prdctionFlow.mapper.TransQueryMapper;
import com.zw.mes.module.prdctionFlow.model.TransModel;
import com.zw.mes.module.system.mapper.DeptMapper;
import com.zw.mes.module.system.repository.DeptRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.zw.mes.constant.Constant.STATUS_NORMAL;


/**
 * @Description:
 *
 * @Author: China.sgl
 * @Date: 2019/12/6 08:42
 */
@Service
@SuppressWarnings("all")
public class TransQuerytService {

    @Autowired
    private TransQueryMapper transQueryMapper;


    /**
     * 按条件查询
     *
     * @param dept 条件
     * @return List
     */
    public List<TransModel> findTransByCondition(TransModel transModel) {
        return transQueryMapper.findTransByCondition(transModel);
    }
}
